package com.online_vote_system.demo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.online_vote_system.demo.mapper.AdminMapper;
import com.online_vote_system.demo.vo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin LoginTest(String adminName, String adminPass) {
        return adminMapper.LoginTest(adminName,adminPass);
    }

    @Override
    public List<Admin> getAllAdmin() {
        return adminMapper.getAllAdmin();
    }
}
